<?php
	//删除帐户
	require '../biz/backend.php';

	class action extends backend
	{
		function do_get()
		{
			$admin = load( 'biz.admin' );
			$result = $admin->del( $this->input );

			if ( $result['success'] )
			{
				$this->prompt( '成功删除帐户', array( array( 'url' => 'list_admin.php', 'name' => '返回列表' ) ) );
			}
			else
			{
				$this->prompt( '删除帐户失败', $this->transform( $result['message'], 'list_admin.php' ) ) );
			}
		}
	}

	$action = new action();
	$action->run();
?>